<pre class="docs-method-signature"><code>util.imageToDataUri(url, callback)</code></pre>
<p>Convert an image at <code>url</code> to the <a href="https://en.wikipedia.org/wiki/Data_URI_scheme">Data URI scheme</a>. The function is able to handle PNG, JPG and SVG formats. Useful if you need to embed images directly into your diagram instead of having them referenced externally.</p>

<p>The <code>callback</code> function has the following signature: <code>function(err, dataUri) {}</code>.</p>
